﻿
using B.S.DataBase.MyProject.Domain.RBAC;
using Microsoft.EntityFrameworkCore;


namespace B.S.DataBase.MyProject.Infrastructure
{
    /// <summary>
    /// 上下文
    /// </summary>
    public class SDbContext : DbContext
    {
        public SDbContext(DbContextOptions options) : base(options)
        {
        }

        public DbSet<User> Users { get; set; }
        public DbSet<Role> Roles { get; set; }
        public DbSet<UserRole> UserRoles { get; set; }
        public DbSet<Menu> Menus { get; set; }
        public DbSet<RoleMenu> RoleMenus { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        public DbSet<DepartModel> departs { get; set; }



    }
}


